package com.pig.graduate.controller.event;


import com.baomidou.mybatisplus.extension.conditions.query.LambdaQueryChainWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.pig.graduate.domain.event.EventExit;
import com.pig.graduate.domain.event.EventTransferDormitory;
import com.pig.graduate.result.MyResult;
import com.pig.graduate.service.event.EventExitService;
import com.pig.graduate.service.event.EventTransferDormitoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = {"转舍记录"}, description = "转舍记录")
@RestController
@RequestMapping("/event/td")
public class EventTransferDormitoryController {

    @Autowired
    private EventTransferDormitoryService eventTransferDormitoryService;

    /**
     * 进场记录
     * @param eventTransferDormitory
     * @return
     */
    @ApiOperation(value = "转舍记录",notes = "转舍记录")
    @PostMapping("/list")
    public MyResult entryList(@RequestBody EventTransferDormitory eventTransferDormitory){
        return eventTransferDormitoryService.transferDormitoryList(eventTransferDormitory);
    }

}
